﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{
    public class Flight
    {
        City from;
        City to;
        bool found;
        String company { get; set; }
        int noOfSeats { get; set; }
        int price;

     
        public Flight(City from, City to, int price)
        {
            this.from = from;
            this.to = to;
            this.price = price;
        }
        public City From
        {
            get
            {
                return from;
            }
        }

        public City To
        {
            get
            {
                return to;
            }
        }
        public void SetFound(bool value)
        {
            found = value;
        }
        public bool Found
        {
            get
            {
                return found;
            }
        }
        public int Price
        {
            get { return price; }
            set { price = value; }
        }
    }
}
